package com.ncr.travel.appmgr.service.provider.impl;

import java.util.List;

import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import com.ncr.travel.appmgr.model.shared.Graphics;
import com.ncr.travel.appmgr.service.provider.GraphicsProvider;

@Component
public class GraphicsProviderImpl implements GraphicsProvider {

	//private MockDatabase mockDataBase;

	/*@Autowired
	public GraphicsProviderImpl(MockDatabase mockDataBase) {
		this.mockDataBase = mockDataBase;
	}*/

	/**
	 * @see com.ncr.travel.appmgr.service.provider.com.ncr.travel.appmgr.service.provider.GraphicsProvider#addImageToCollection(long, long, org.springframework.web.multipart.MultipartFile)
	 */
	@Override
	public void addImageToCollection(long screenId, long graphicsId, MultipartFile imageFile) {
		/*try {
			this.mockDataBase.addImageToCollection(screenId, graphicsId, imageFile);
		} catch (IllegalStateException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/

	}

	/**
	 * @see com.ncr.travel.appmgr.service.provider.com.ncr.travel.appmgr.service.provider.GraphicsProvider#updateGraphicsCollection(long, java.util.List)
	 */
	@Override
	public void updateGraphicsCollection(long screenId, List<Graphics> graphics) {
		//this.mockDataBase.updateGraphicsCollection(screenId, graphics);
	}

}
